if (width <= 0 || height <= 0)
return;
- cairo_save (cr);
- cairo_new_path (cr);
-
gtk_do_render_check (context, cr, x, y, width, height);
-
- cairo_restore (cr);
}
static void
if (width <= 0 || height <= 0)
return;
- cairo_save (cr);
- cairo_new_path (cr);
-
gtk_do_render_option (context, cr, x, y, width, height);
-
- cairo_restore (cr);
}
static void
if (size <= 0)
return;
- cairo_save (cr);
- cairo_new_path (cr);
-
gtk_do_render_arrow (context, cr, angle, x, y, size);
-
- cairo_restore (cr);
}
/**
if (width <= 0 || height <= 0)
return;
- cairo_save (cr);
- cairo_new_path (cr);
-
gtk_css_style_render_background (gtk_style_context_lookup_style (context),
cr, x, y, width, height,
gtk_style_context_get_junction_sides (context));
-
- cairo_restore (cr);
}
/**
if (width <= 0 || height <= 0)
return;
- cairo_save (cr);
- cairo_new_path (cr);
-
gtk_css_style_render_border (gtk_style_context_lookup_style (context),
cr,
x, y, width, height,
0,
gtk_style_context_get_junction_sides (context));
-
-
- cairo_restore (cr);
}
static void
if (width <= 0 || height <= 0)
return;
- cairo_save (cr);
- cairo_new_path (cr);
-
gtk_do_render_expander (context, cr, x, y, width, height);
-
- cairo_restore (cr);
}
/**
if (width <= 0 || height <= 0)
return;
- cairo_save (cr);
- cairo_new_path (cr);
-
gtk_css_style_render_outline (gtk_style_context_lookup_style (context),
cr,
x, y, width, height);
-
- cairo_restore (cr);
}
static void
g_return_if_fail (PANGO_IS_LAYOUT (layout));
g_return_if_fail (cr != NULL);
- cairo_save (cr);
- cairo_new_path (cr);
-
gtk_do_render_layout (context, cr, x, y, layout);
-
- cairo_restore (cr);
}
static void
g_return_if_fail (GTK_IS_STYLE_CONTEXT (context));
g_return_if_fail (cr != NULL);
- cairo_save (cr);
- cairo_new_path (cr);
-
gtk_do_render_line (context, cr, x0, y0, x1, y1);
-
- cairo_restore (cr);
}
static void
if (width <= 0 || height <= 0)
return;
- cairo_save (cr);
- cairo_new_path (cr);
-
gtk_do_render_slider (context, cr, x, y, width, height, orientation);
-
- cairo_restore (cr);
}
static void
else
g_return_if_fail (xy1_gap <= width);
- cairo_save (cr);
- cairo_new_path (cr);
-
gtk_css_style_render_frame_gap (gtk_style_context_lookup_style (context),
cr,
x, y, width, height, gap_side,
xy0_gap, xy1_gap,
gtk_style_context_get_junction_sides (context));
-
-
- cairo_restore (cr);
}
static void
if (width <= 0 || height <= 0)
return;
- cairo_save (cr);
- cairo_new_path (cr);
-
gtk_css_style_render_extension (gtk_style_context_lookup_style (context),
cr,
x, y, width, height,
gap_side);
-
- cairo_restore (cr);
}
static void
if (width <= 0 || height <= 0)
return;
- cairo_save (cr);
- cairo_new_path (cr);
-
gtk_do_render_handle (context, cr, x, y, width, height);
-
- cairo_restore (cr);
}
/**
if (width <= 0 || height <= 0)
return;
- cairo_save (cr);
- cairo_new_path (cr);
-
gtk_css_style_render_icon (gtk_style_context_lookup_style (context), cr, x, y, width, height, GTK_CSS_IMAGE_BUILTIN_SPINNER);
-
- cairo_restore (cr);
}
static GdkPixbuf *
g_return_if_fail (GTK_IS_STYLE_CONTEXT (context));
g_return_if_fail (cr != NULL);
- cairo_save (cr);
- cairo_new_path (cr);
-
surface = gdk_cairo_surface_create_from_pixbuf (pixbuf, 1, NULL);
gtk_css_style_render_icon_surface (gtk_style_context_lookup_style (context),
x, y);
cairo_surface_destroy (surface);
-
- cairo_restore (cr);
}
/**
g_return_if_fail (GTK_IS_STYLE_CONTEXT (context));
g_return_if_fail (cr != NULL);
- cairo_save (cr);
- cairo_new_path (cr);
-
gtk_css_style_render_icon_surface (gtk_style_context_lookup_style (context),
cr,
surface,
x, y);
-
- cairo_restore (cr);
}
/*